﻿@model JuniorProject.Models.ScreeningQuestionModel

<div class="question">

@Html.HiddenFor(x=>x.ID)
@Html.HiddenFor(x=>x.Question)
@Model.Question
@Html.ValidationMessageFor(b => b.SelectedAnswer, "You must select an answer")

@foreach (var answer in Model.Answers)
{
    <div class="answer">
        <p>
        @Html.RadioButtonFor(b => b.SelectedAnswer, answer.ID, new { ID = answer.ID, Class = "required" })
        @answer.Answer
        </p>
    </div>
}
<br />
</div>